using IRepository;
using IServices;
using SqlSugar;
using YL.Core.Entity;

namespace Services 
{
    public class Whr_comment_imagesServices : BaseServices<Whr_comment_images>, IWhr_comment_imagesServices
    {
        private readonly SqlSugarClient _client;
        public Whr_comment_imagesServices(SqlSugarClient client, IWhr_comment_imagesRepository repository) : base(repository)
        {
            _client = client;
        }

        public object GetCommentImages(int commentId)
        {
            var list = _client.Queryable<Whr_comment_images>().Where((i) => i.CommentId == commentId).ToList();
            return list;
        }
    }
}